/*
 * Copyright (c) 2012 Google Inc.
 *
 * All rights reserved. This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at
 *
 * http://www.eclipse.org/legal/epl-v10.html
 */
package com.google.eclipse.xtext.filename.ui;

import static com.google.eclipse.xtext.filename.ui.internal.MyDslActivator.COM_GOOGLE_ECLIPSE_XTEXT_FILENAME_MYDSL;

import com.google.eclipse.xtext.filename.ui.internal.MyDslActivator;
import com.google.inject.Injector;

/**
 * Class that exposes the Guice {@code Injector} used by the "MyDsl" Editor.
 *
 * @author alruiz@google.com (Alex Ruiz)
 */
public class InjectorProvider {

  /**
   * Returns the Guice {@code Injector} used by the "MyDsl" Editor.
   * @return the Guice {@code Injector} used by the "MyDsl" Editor.
   */
  public Injector getInjector() {
    return MyDslActivator.getInstance().getInjector(COM_GOOGLE_ECLIPSE_XTEXT_FILENAME_MYDSL);
  }

}
